source "$ANALYSISPATH/createplotvars.sh"

gnuplot <<EOF
set terminal postscript eps size 3.5,2.62 enhanced color font 'Helvetica,12'
set output '$RESULTSPATH/fig_copyonlytests_timetaken.eps'
# set yrange [:100000]
set ytics nomirror
set y2tics
ddfile_hdc="$DDFILE_HDC"
ddfile_nohdc="$DDFILE_NOHDC"
fsfile_hdc="$FSFILE_HDC"
fsfile_nohdc="$FSFILE_NOHDC"
set pointsize 0.2
set xlabel "Test"
set ylabel "Time taken with a 1 MB file (ms)"
# If you want a second y axis, edit using this example:
#  "plot datafile using :1 axes x1y2 title 'Y2 Example'"
plot fsfile_hdc using :1 title 'Read from MDC' with lines linetype 1 linecolor 1,\
     fsfile_nohdc using :1 title 'Read from normal share' with lines linetype 1 linecolor 3,\
     ddfile_hdc using :1 title 'Write to MDC' with lines linetype 2 linecolor 2,\
     ddfile_nohdc using :1 title 'Write to normal share' with lines linetype 2 linecolor 4
EOF

